﻿///SimpleFish.as 该类为简单鱼
//vesion 1.0
//author 夏天的树人
package org.summerTree.graphics
{
	import flash.geom.Point;
	public class SimpleFish extends Base 
	{
		//private var START_POINT:Point;
		public function SimpleFish()
		{

		}
		override public function clone():*
		{
			return new SimpleFish();
		}
		
		//创建简单的鱼
		public function CreatSimpleFish(Width:Number,Height:Number,eyes_Width:Number=5,Fish_rear:Number=50,n:int=4):void
		{
				
		  this.graphics.lineStyle(1,color);
		  this.graphics.moveTo(0,0);
		  this.graphics.curveTo(Width/2, Height, Width, 0);
		  this.graphics.moveTo(0,0);
		  this.graphics.curveTo(Width/2, -Height, Width, 0);
		  
		  this.graphics.drawCircle(Width/5,0,eyes_Width);
		  
		  this.graphics.moveTo(Width/4,-Height/2.7);		  
		  this.graphics.curveTo(Width/3, 0, Width/4, Height/2.7);
		  
		  
		  //创建鱼尾		  
		  this.graphics.moveTo( Width, 0);		  
		  this.graphics.lineTo( Width+Width/n,  Fish_rear);
		  
		  this.graphics.moveTo( Width, 0);
		  
		  this.graphics.lineTo( Width+Width/n,  -Fish_rear);
		  this.graphics.lineTo( Width+Width/n,  +Fish_rear);
			
		}
		//public function clear():void
//		{
//			this.graphics.clear();
//		}
		
	}
}